<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/comm/header.jsp"%>
<div class="container">
    <div id="toolbar">
        <a class="btn btn-success" href="javascript:grant()"><i class="fa fa-trash"></i> 角色授权</a>
    </div>
    <table id="roleTb"
    data-toggle="table"
    data-url="sys/role/search"
    data-striped="true"
    data-toolbar="#toolbar">
        <thead>
        <tr>
            <th data-radio="true"></th>
            <th data-field="name">角色名称</th>
            <th data-field="state" data-formatter="fmtState">状态</th>
            <th data-field="modifyBy">修改人</th>
            <th data-field="modifyTime">修改时间</th>
            <th data-formatter="fmtOpt" data-events="eventObj" data-field="id">
            </th>
        </tr>
        </thead>
    </table>
    <div id="update">
        <form class="form-horizontal">
            <input type="hidden" name="id"/>
            <div class="form-group">
                <lable class="control-label text-right col-md-3">角色名称：</lable>
                <div class="col-md-8"><input type="text" name="name" class="form-control"></div>
            </div>
            <div class="form-group">
                <lable class="control-label text-right col-md-3">角色状态：</lable>
                <div class="col-md-8">
                    <label class="radio-inline">
                        <input type="radio" name="state" value="1"/>启用
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="state" value="0"/>禁用
                    </label>
                </div>
            </div>
        </form>
    </div>


    <div id="grant">
            <div id="tree"></div>
    </div>
</div>
<%@include file="/comm/footer.jsp"%>
<script src="${ctx}/static/js/role.js"></script>